package entity

import (
	"time"
)

const (
	TableNameLane = "lane"
)

type Lane struct {
	TollgateID     string    `xorm:"tollgate_id not null default '' VARCHAR(1024)"`
	LaneId         int       `xorm:"lane_id pk autoincr"`
	LaneNo         int       `xorm:"lane_no not null default 0 int"`
	Name           string    `xorm:"name not null default '' VARCHAR(1024)"`
	Direction      string    `xorm:"direction not null default '' VARCHAR(16)"`
	Desc           string    `xorm:"describe default '' VARCHAR(1024)"`
	MaxSpeed       int       `xorm:"max_speed default 0 int"`
	CityPass       int       `xorm:"city_pass default 0 int"`
	ApeId          string    `xorm:"ape_id default '' VARCHAR(1024)"`
	ViewDatabaseID string    `xorm:"view_database_id not null default '' text"`
	Ts             int64     `xorm:"ts not null default 0 bigint"`
	Uts            time.Time `xorm:"uts not null default 'now()' DATETIME"`
}

func (l Lane) TableName() string {
	return TableNameLane
}
